<template>
  <ms-block-tip>
    <el-form :inline="true" :model="searchForm" class="demo-form-inline">
      <el-form-item label="字典值" prop="dictValue">
        <el-input v-model="searchForm.dictValue" />
      </el-form-item>
      <el-form-item label="对应码" prop="code">
        <el-input v-model="searchForm.code" />
      </el-form-item>
      <el-form-item>
        <el-button size="small" type="success" @click="$emit('search', searchForm)">查询</el-button>
      </el-form-item>
    </el-form>
  </ms-block-tip>
</template>

<script>
import MsBlockTip from '@/common/blockTip'
export default {
  components: {
    MsBlockTip
  },
  data() {
    return {
      searchForm: {}
    }
  },
  methods: {
    search() {
      this.$emit('search', this.searchForm)
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/style/search.stylus'
</style>
